<?php
header('content-type:text/html;charset=utf-8');
 $link=mysqli_connect('localhost','root','');
    if(!$link){
        die('连接数据库失败!'.mysqli_error($link));
    }
    mysqli_query($link,'set names utf8');
    mysqli_query($link,'use jfgl');
    $sql="select * from administrator";
    $result=mysqli_query($link,$sql);
    $administrator=array();
    while($row=mysqli_fetch_assoc($result)){
        $administrator[]=$row;
    }
//var_dump($administrator);die;
define('APP','jfgl');
require 'admin-home.php';
?>
